package studentinformationmanagementsystem.entity;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author 苗庆
 * @version 1.0
 * 班级实体类对象
 */
public class Classandgrade implements Serializable {

    private static final long serialVersionUID = 1L;

    //班级id
    private Integer classandgradeid;

    //班级名称
    private String classandgrade;

    //班级简介
    private  String briefintroduction;

    //班级QQ群
    private String qqGroup;

    //教师表id
    private Integer teacherid;

    //是否已经删除 0未删除 1已经删除
    private Integer IsDelete;


    public Classandgrade() {

    }

    public Classandgrade(Integer classandgradeid, String classandgrade, String briefintroduction, String qqGroup, Integer teacherid, Integer isDelete) {
        this.classandgradeid = classandgradeid;
        this.classandgrade = classandgrade;
        this.briefintroduction = briefintroduction;
        this.qqGroup = qqGroup;
        this.teacherid = teacherid;
        IsDelete = isDelete;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Classandgrade that = (Classandgrade) o;
        return classandgradeid.equals(that.classandgradeid);
    }

    @Override
    public int hashCode() {
        return Objects.hash(classandgradeid);
    }

    @Override
    public String toString() {
        return "Classandgrade{" +
                "classandgradeid=" + classandgradeid +
                ", classandgrade='" + classandgrade + '\'' +
                ", briefintroduction='" + briefintroduction + '\'' +
                ", qqGroup='" + qqGroup + '\'' +
                ", teacherid=" + teacherid +
                ", IsDelete=" + IsDelete +
                '}';
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getClassandgradeid() {
        return classandgradeid;
    }

    public void setClassandgradeid(Integer classandgradeid) {
        this.classandgradeid = classandgradeid;
    }

    public String getClassandgrade() {
        return classandgrade;
    }

    public void setClassandgrade(String classandgrade) {
        this.classandgrade = classandgrade;
    }

    public String getBriefintroduction() {
        return briefintroduction;
    }

    public void setBriefintroduction(String briefintroduction) {
        this.briefintroduction = briefintroduction;
    }

    public String getQqGroup() {
        return qqGroup;
    }

    public void setQqGroup(String qqGroup) {
        this.qqGroup = qqGroup;
    }

    public Integer getTeacherid() {
        return teacherid;
    }

    public void setTeacherid(Integer teacherid) {
        this.teacherid = teacherid;
    }

    public Integer getIsDelete() {
        return IsDelete;
    }

    public void setIsDelete(Integer isDelete) {
        IsDelete = isDelete;
    }
}
